package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30)"`
	Password string `gorm:"type:varchar(100)"`
}

func (u *User) UserAdd(db *gorm.DB) error {
	return db.Debug().Create(u).Error
}
